﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Planejamento_programas_ano.ascx.cs" Inherits="SERIX.Controles.Report.Planejamento_programas_ano" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/Controles/Navegador.ascx" TagName="Navegador" TagPrefix="uc1" %>
<style type="text/css">
    .style1
    {
        font-size: x-small;
    }
</style>

<link href="../Estilos/Estilo.css" rel="stylesheet" type="text/css" />

<asp:LinkButton ID="linkBtnNome" runat="server" Font-Bold="True" 
    Font-Underline="False">Programas</asp:LinkButton>

&nbsp; <span class="style1">
<asp:Label ID="Label1" runat="server" Text="0"></asp:Label>
&nbsp;</span><asp:UpdatePanel ID="UpdatePanelLov" runat="server">
        <ContentTemplate>
            <table align="center" border="0" cellpadding="2" cellspacing="0" width="350px">
                <tr id="Draglable" runat="server">
                    <td>
                        <table>
                            <tr>
                                <td style="width: 100%; text-align: left">
                                    &nbsp;<asp:Label ID="lbTitulo" runat="server" Text="Pesquisa de ..." Font-Bold="True"></asp:Label>
                                </td>
                                <td>
                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanelLov">
                                        <ProgressTemplate>
                                            <img alt="" src="../../Imagens/indicator.white.gif" />
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                </td>
                                <td align="left" style="height: 16px; text-align: right;">
                                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Imagens/botoes/remove.png"
                                        OnClick="ImageButton1_Click" CausesValidation="False" 
                                        style="height: 16px" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" class="grid_titulo">
<asp:Panel ID="Panel1" runat="server" Width="350px">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CssClass="grid" DataKeyNames="idt_prog" onrowdatabound="GridView1_RowDataBound" 
        Width="350px" AllowPaging="True" DataSourceID="SqlDataSource1" 
        onpageindexchanged="GridView1_PageIndexChanged">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:CheckBox ID="cbValue" runat="server" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="50px" />
            </asp:TemplateField>
            <asp:BoundField DataField="NOM_PROG" HeaderText="Programas">
                <ItemStyle HorizontalAlign="Left" />
            </asp:BoundField>
        </Columns>
        <EmptyDataRowStyle CssClass="emptyrow" />
        <HeaderStyle CssClass="header" />
        <RowStyle CssClass="row" />
        <AlternatingRowStyle CssClass="row_alter" />
    </asp:GridView>
         </asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td align="center" style="color: #000000">
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                            SelectCommand="select distinct ais.idt_prog, p.nom_prog from srx_programacao prog
join srx_acoes_indicadores ais on prog.idt_ais = ais.idt_ais
join srx_programas p on p.idt_prog = ais.idt_prog
where ais.ano_ais = :ano
">
                            <SelectParameters>
                                <asp:Parameter Name="ano" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td align="center" style="color: #000000; height: 125px; vertical-align: text-top">
                        
                    </td>
                </tr>
                <tr style="height: 50px; vertical-align: bottom">
                    <td align="center" style="color: #000000">
                        
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>

<cc1:ModalPopupExtender ID="Panel1_ModalPopupExtender" runat="server" 
    DynamicServicePath="" Enabled="True" 
    TargetControlID="linkBtnNome" BackgroundCssClass="modalBackground"  PopupControlID="UpdatePanelLov">
</cc1:ModalPopupExtender>